package com.ln.yygh.hosp.repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ln.yygh.model.hosp.*;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HospitalRepository extends MongoRepository<Hospital, String> {
    //此数据是否存在
    Hospital getHospitalByHoscode(String hoscode);
    //根据医院模糊
    List<Hospital> findHospitalByHosnameLike(String hosname);

}
